package alvarodelrosal.chat.client.modelo;

import java.util.ArrayList;
import java.util.List;

public class Utilities {

    public static List<String> tokenizer(String string) {
        List<String> tokenized = new ArrayList();
        if (exists(string)) {
            String[] strippedString = string.split("<:@:>");
            for (String stringPart : strippedString) {
                tokenized.add(stringPart);
            }
        }
        return tokenized;
    }

    private static boolean exists(String string) {
        return string != null;
    }
}
